package hr.service;

import hr.entity.DO.PositionEmployeesDO;
import hr.entity.DO.PositionsDepartmentDO;
import hr.entity.Position;
import com.baomidou.mybatisplus.extension.service.IService;
import hr.entity.vo.PositionEmployeesVo;
import hr.entity.vo.PositionVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 岗位信息表 服务类
 * </p>
 *
 * @author zzh
 * @since 2023-12-06
 */
public interface PositionsService extends IService<Position> {

    //获取岗位列表
    List<PositionsDepartmentDO> selectAllPosition(PositionVo positionVo);

    List<Position> getPositionIdAndName();

    //岗位下员工查询
    List<PositionEmployeesDO> getEmployeeByPositionId(PositionEmployeesVo positionEmployeesVO);

    //查询岗位列表总条数
    Integer selectCount(PositionVo positionVo);

    boolean deletePostByPositionId(Integer positionId) throws Exception;

    boolean addPositions(Position position);

    List<Position> getPositionsSalary();

    List<Map<String, Object>> getPositionsPeoples();

    Map<String,Object> handlePositionsSalaryAndPeople();

}
